#define _CRT_SECURE_NO_WARNINGS 1

#include"vector.h"

namespace F
{
    void test1()
    {
        vector<int> v;
        v.push_back(1);
        v.push_back(2);
        v.push_back(3);
        v.push_back(4);
        v.push_back(5);
        v.push_back(6);
        print_vector(v);
    }
    void test2()
    {
        vector<int> v;
        v.push_back(1);
        v.push_back(2);
        v.push_back(3);
        v.push_back(4);

        vector<int>::iterator it = v.begin();
        while (it != v.end())
        {
            cout << *it << " ";
            it++;
        }
        cout << endl;
    }
    void test3()
    {
        vector<int> v;
        v.push_back(1);
        v.push_back(2);
        v.push_back(3);
        v.push_back(4);

        vector<int>::reverse_iterator rit = v.rbegin();
        while (rit != v.rend())
        {
            cout << *rit << " ";
            rit++;
        }
        cout << endl;
    }
    void test4()
    {
        vector<int> v = { 1,2,3,4,5,6 };
        for (auto e : v)
        {
            cout << e << " ";
        }
        cout << endl;
    }
}

int main()
{
    F::test4();
    return 0;
}